package youcaihuaoa.weetop.com.ui.adapter

import android.view.View
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.robot.base.common.api.GlBaseApi
import com.robot.base.model.MyFriendBean
import com.robot.base.utils.pic.ImageLoaderUtils
import youcaihuaoa.weetop.com.R

class MyFriendAdapter :
    BaseQuickAdapter<MyFriendBean, BaseViewHolder>(
        R.layout.app_item_friend,

        ) {
    override fun convert(holder: BaseViewHolder, item: MyFriendBean) {
        ImageLoaderUtils.displayCircle(
            context,
            holder.getView(R.id.iv_avatar),
           GlBaseApi.PIC_BASE_URL+item.friend_head_img
        )
        holder.setText(R.id.tv_name, item.friend_name)
        holder.setText(R.id.tv_job, item.friend_job_name)
        holder.getView<View>(R.id.tv_add).visibility = View.GONE
    }
}